package com.bigdatastudio.openfeign.client;

import com.bigdatastudio.common.Utils.R;
import com.bigdatastudio.common.dto.UserParm;
import com.bigdatastudio.openfeign.fallback.AdminClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiao_jie
 * @date 2022/11/6 20:29
 * @describe this is a text
 */

@FeignClient(name = "bigdatastudio-admin",fallback = AdminClientFallBack.class)
public interface AdminClient {

    @PostMapping("/user/list")
    public R list(@RequestBody UserParm userParm);

    @GetMapping("/user/getOne")
    public R getUser(@RequestParam Integer id);

}
